package com.mooc.yohoshop.ui.splash;

import com.mooc.yohoshop.ApiService;
import com.mooc.yohoshop.entity.BaseEntity;
import com.mooc.yohoshop.network.BaseRepository;
import com.mooc.yohoshop.network.HttpFactory;
import com.mooc.yohoshop.network.HttpType;

import java.util.HashMap;

import io.reactivex.Observable;

public class SplashRepo extends BaseRepository {

    public Observable<BaseEntity>requestToken(HashMap parames){
        return convertObservable(HttpFactory.factory(HttpType.SIGNTYPE)
                .getRetrofit().create(ApiService.class)
                .requestToken(createBody(parames)));
    }

}
